<template>
  <div id="app">
    <el-container>
      <el-header>Header</el-header>
      <el-main>Main</el-main>
      <el-footer>Footer</el-footer>
    </el-container>
  </div>
</template>

<script>


  export default {
    data () {
      return {
        menus: [
          { text: '首页', to: '/', icon: 'ios-navigate', value: 'index' },
        ],
      };
    },
    components: {

    },
    computed: {

    },
    created() {
      console.log(screen.width )
      this.handleScreenResize();
    },
    mounted() {
      window.onresize = () =>{
        this.handleScreenResize();
      }
      // localStorage.setItem('locale', 'zh');
      // this.$i18n.locale = localStorage.getItem('locale');
    },
    methods: {
      handleScreenResize() {
        // const hash = window.location.hash;
        // if(screen.width<768){
        //   window.location.href=`http://localhost:9090${hash || ''}`; // 去移动端页面
        // }else{
        //   window.location.href=`http://localhost:9080${hash || ''}`; // 去pc端页面
        // }
      }
    }
  }
</script>

<style lang="less" scoped>

</style>
